import validator from "../../miniprogram_npm/lin-ui/behaviors/validator";
Component({
  externalClasses: ["l-class", "l-img-class", "l-title-class"],
  options: {
    multipleSlots: !0
  },
  bahaviors: [validator],
  properties: {
    image: String,
    title: String,
    describe: String,
    plaintext: Boolean,
    full: Boolean,
    position: {
      type: String,
      value: "left",
      options: ["left", "right"]
    },
    type: {
      type: String,
      value: "primary",
      options: ["primary", "avatar"]
    },
    imageMode: {
      type: String,
      value: "scaleToFill"
    }
  },
  data: {},
  methods: {
    // 头像点击事件
    onAvatarTap() {
      this.triggerEvent('linavatar');
    },
    // 标题点击事件
    onTitleTap() {
      this.triggerEvent('lintitle');
    }
  }
});